<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        class Person{
            sayBye(){
                console.log("拜拜~")
            }

            constructor(name,age){
                this.name=name
                this.age=age
            }
        }


        name1="hzt"
        age1=18
        let p=new Person(name1,age1)
        console.log(p)
        console.log(p.age)
        console.log(p.name)
        p.sayBye()

        let p1=new Person("hzh",19)

        console.log(p.__proto__===p1.__proto__)
        p.__proto__.kind="human"
        console.log(p1)

        let pet={
            kind:"哈基米",
            name:"黄紫红",
            speak:"哈基米哈基米哈基米哈基米那里鲁多"
        }
        let keys=Object.keys(pet)
        console.log(keys)
        console.log(Object.values(pet))
        console.log(Object.entries(pet))
        let en=Object.entries(pet)

        for(items of en){
                for(item of items){
                    console.log(item)
                }
        }
    </script>
</body>
</html>